dax: Avoid ABI change in 4.13.5
authorBen Hutchings <ben@decadent.org.uk>
Thu, 26 Oct 2017 20:16:38 +0000 (22:16 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 16 Nov 2017 21:04:10 +0000 (21:04 +0000)
commit462495c1bf5f6b1cd999a409625268c934e180ea
tree53fc0c9c89ba65f327b94125a1b98bb5160b37c6
parentefc4765201d2750723f2b6b9fc7973890a1c2cda
dax: Avoid ABI change in 4.13.5

Commit c3ca015fab6d ("dax: remove the pmem_dax_ops->flush
abstraction") removed dax_operations::flush and
target_type::dax_flush, resulting in an ABI change.  Add these
operations back but don't restore any of the calls to them.  To keep
existing callers working during an incomplete kernel upgrade, change
all the implementations to directly do arch_wb_cache_pmem(), just as
dax_flush() does in the new kernel.

Don't change dax_flush() back; it shouldn't have any out-of-tree
callers.

Gbp-Pq: Topic debian
Gbp-Pq: Name dax-avoid-abi-change-in-4.13.5.patch
drivers/md/dm-linear.c
drivers/md/dm-stripe.c
drivers/md/dm.c
drivers/nvdimm/pmem.c
include/linux/dax.h
include/linux/device-mapper.h